/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.fgv.controller;

import br.com.fgv.ejb.TesteEJBLocal;
import br.com.fgv.model.Teste;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Diego
 */
@ManagedBean(name = "testeM")
@SessionScoped
public class TesteManagedBean implements Serializable {

    @EJB
    private TesteEJBLocal testeEJBLocal;

    public TesteManagedBean() {
    }

    public List<Teste> getListaTeste() throws Exception {
       

        return testeEJBLocal.listarTodos();
        // return testeSessionBeanLocal.getListaTestes();
    }
}
